package com.app.widgets;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.app.widgets.GestureImageView.GestureImageViewActivity;
import com.app.widgets.SearchLayoutDemo.SearchLayoutActivity;
import com.app.widgets.flexibleImageView.sample.CRImageViewActivity;
import com.app.widgets.impl.ExpandableActivity;
import com.app.widgets.impl.ExpandableTextViewActivity;
import com.app.widgets.impl.HorizontalExpandViewActivity;
import com.app.widgets.photoview.sample.LauncherActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    private void jump(Class c) {
        startActivity(new Intent(this, c));
    }

    public void ExpandableTextView(View view) {
        jump(ExpandableTextViewActivity.class);
    }

    public void ExpandableListView(View view) {
        jump(ExpandableActivity.class);
    }

    public void HorizontalExpandView(View view) {
        jump(HorizontalExpandViewActivity.class);
    }

    public void GestureImageView(View view) { jump(GestureImageViewActivity.class);
    }

    public void PhotoImageView(View view) {jump(LauncherActivity.class);
    }

    public void DessertView(View view) {
        jump(com.app.widgets.dessertDemo.enviewsdemo.MainActivity.class);
    }

    public void CircularProgressButtonDemo(View view) {
        jump(com.app.widgets.CircularProgressButtonDemo.MainActivity.class);
    }

    public void BounceLoadingView(View view) {
        jump(com.app.widgets.BounceLoadingViewDemo.MainActivity.class);
    }

    public void SwitchButton(View view) {
        jump(com.app.widgets.SwitchButtonDemo.SwitchButtonActivity.class);
    }

    public void SearchLayout(View view) {
        jump(SearchLayoutActivity.class);
    }

    public void crImageView(View view) {
        jump(CRImageViewActivity.class);
    }

    public void TargetImageView(View view) {
        jump(com.app.widgets.targetimage.sample.TargetImageActivity.class);
    }
}
